<?php
require_once 'config.php'; 

$host = $config['host'];
$name = $config['name'];
$pwd = $config['pwd'];
$dbname = $config['dbname'];
$conn = new mysqli($host, $name, $pwd, $dbname);

if($conn->connect_error) die("conneect failed");